package com.wondersgroup.core.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.abel533.mapper.Mapper;
import com.wondersgroup.core.model.InfoTraceDailyVisit;

public interface InfoTraceDailyVisitMapper extends Mapper<InfoTraceDailyVisit> {

	Date getLatestDate();

	void calculateDailyVisit(Date latestDate);

	List<Map> getCountOfTraceHistoryOrderByCreateDate(@Param("latestDate") Date latestDate);

	List<Map<String,String>> getStatsOfQueryByProductType(int withinDays);

	List<Map<String, String>> getStatsOfQueryByDay();

}